import Vue from 'vue'

import {
  Search, PullRefresh, Card, NoticeBar, Area, Sidebar, SidebarItem,
  Icon, NavBar, Tabbar, TabbarItem, Panel, Image,
  Cell, CellGroup, Button, Toast, Field, AddressEdit, Popup, Tab, Uploader, Tabs, Dialog, ActionSheet
} from 'vant'
Vue.use(Uploader)
  .use(Card)
  .use(NoticeBar)
  .use(Area)
  .use(Sidebar)
  .use(SidebarItem)
  .use(Icon)
  .use(NavBar) // 导航栏
  .use(Tabbar).use(TabbarItem) // 底部导航
  .use(Panel)
  .use(Image)
  .use(Cell).use(CellGroup)
  .use(Button)
  .use(Field).use(Popup).use(Tab).use(Tabs).use(Dialog).use(ActionSheet)
  .use(PullRefresh).use(Search).use(AddressEdit)

Vue.prototype.$Toast = Toast
